#include"SphereModel.h"

/////////////////
//include
/////////////////
#include"ANX.h"
#include"Layout.h"
#include"Device.h"
#include"DeviceContext.h"
#include"CppHeader.h"
/////////////////
//prottype
/////////////////

/////////////////
//const
/////////////////



SphereModel::SphereModel(float r)
{
	vertex = Array<Vector3D>(64);
	for(int i = 0;i<8;i++)
	{
		for(int j = 0;j<8;j++)
		{
			vertex[i*8+j] = Vector3D(cos(PI*2/8*j)*sin(PI/8*i),cos(PI/8*i),sin(PI*2/8*j)*sin(PI/8*i));
		}
	}
	SetScale(Vector3D(r,r,r));
}
SphereModel::~SphereModel()
{
}
